package com.wang.service;

import com.wang.mapper.DevMdtParamConfDataDao;
import com.wang.pojo.DevMdtParamConfData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DevMdtParamConfDataServiceImpl implements DevMdtParamConfDataService {

    @Autowired
    private DevMdtParamConfDataDao paramConfDataDao;


    @Override
    public List<DevMdtParamConfData> selectDevMdtParamConfDataByConfId(Integer confId) {
        return paramConfDataDao.selectDevMdtParamConfDataByConfId(confId);
    }

    @Override
    public DevMdtParamConfData selectDevMdtParamConfDataByDevIdAndParamCode(Integer devId, String paramCode) {
        return paramConfDataDao.selectDevMdtParamConfDataByDevIdAndParamCode(devId,paramCode);
    }

    @Override
    public void editCheckParamCodeById(Integer confDataId, String paramCode) {
        paramConfDataDao.editCheckParamCodeById(confDataId,paramCode);
    }


}
